{{- if .Values.userAuthz.enableMultiTenancy }}
---
apiVersion: v1
kind: Secret
metadata:
  name: user-authz-webhook
  namespace: d8-{{ .Chart.Name }}
  {{- include "helm_lib_module_labels" (list . (dict "app" "user-authz-webhook")) | nindent 2 }}
type: kubernetes.io/tls
data:
  ca.crt: {{  .Values.userAuthz.internal.webhookCertificate.ca  | b64enc }}
  tls.crt: {{ .Values.userAuthz.internal.webhookCertificate.crt | b64enc }}
  tls.key: {{ .Values.userAuthz.internal.webhookCertificate.key | b64enc }}
{{- end }}
